package com.factory;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class FactoryConfig {
    public static String default_package = "com/factory";
    static Map<String, String> config = new HashMap<String, String>();

    static {
        config.put("PersonBuilder", "PersonBuilder");
        config.put("AnimalBuilder", "AnimalBuilder");
    }

    public static void getFile(){
        Class clazz = FactoryConfig.class;
        String pack = clazz.getClassLoader().getResource("").getPath() + default_package.replace(".", "/");
        File file=new File(pack);
        if(file.exists()){
            String[] names= file.list();
            for(String name:names){
                System.out.println(name);
            }
        }
    }
}
